package com.skzh.healthy.domain;

import com.skzh.common.annotation.Excel;
import com.skzh.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 设备告警对象 equipment_alarm
 */
public class EquipmentAlarm extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 告警码 */
    @Excel(name = "告警码")
    private String alarmCode;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String droneName;

    /** 告警等级 */
    @Excel(name = "告警等级", readConverterExp = "0=提醒,1=警告,2=严重")
    private String alarmLevel;

    /** 告警类型 */
    @Excel(name = "告警类型")
    private String alarmType;

    /** 所属组织 */
    @Excel(name = "所属组织")
    private String deptName;

    /** 告警内容 */
    @Excel(name = "告警内容")
    private String errorDetail;

    /** 告警时间 */
    @Excel(name = "告警时间")
    private String triggerTime;

    /** 开始时间 */
    private String beginTime;

    /** 结束时间 */
    private String endTime;

    /** 状态（0正常 1停用） */
    private String status;

    public void setAlarmCode(String alarmCode) {
        this.alarmCode = alarmCode;
    }

    public String getAlarmCode() {
        return alarmCode;
    }

    public void setDroneName(String droneName) {
        this.droneName = droneName;
    }

    public String getDroneName() {
        return droneName;
    }

    public void setAlarmLevel(String alarmLevel) {
        this.alarmLevel = alarmLevel;
    }

    public String getAlarmLevel() {
        return alarmLevel;
    }

    public void setAlarmType(String alarmType) {
        this.alarmType = alarmType;
    }

    public String getAlarmType() {
        return alarmType;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setErrorDetail(String errorDetail) {
        this.errorDetail = errorDetail;
    }

    public String getErrorDetail() {
        return errorDetail;
    }

    public void setTriggerTime(String triggerTime) {
        this.triggerTime = triggerTime;
    }

    public String getTriggerTime() {
        return triggerTime;
    }

    public void setBeginTime(String beginTime) {
        this.beginTime = beginTime;
    }

    public String getBeginTime() {
        return beginTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("alarmCode", getAlarmCode())
                .append("droneName", getDroneName())
                .append("alarmLevel", getAlarmLevel())
                .append("alarmType", getAlarmType())
                .append("deptName", getDeptName())
                .append("errorDetail", getErrorDetail())
                .append("triggerTime", getTriggerTime())
                .append("beginTime", getBeginTime())
                .append("endTime", getEndTime())
                .append("status", getStatus())
                .toString();
    }
} 